package com.byedu.course.controller;

import com.byedu.course.UserCourseService;
import com.byedu.domain.course.vo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/log")
public class UserLogController {

    @Autowired
    private UserCourseService userCourseService;

    @ResponseBody
    @RequestMapping(value = "/addUserCourse", method = {RequestMethod.POST})
    public Integer getUserQuestionsByUserId(@RequestBody UserCourseVO userCourseVO) {

        return userCourseService.addUserCourse(userCourseVO);
    }


}
